.class Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;
.super Lcom/glympse/android/glympse/Glympse$GlympseView;
.source "ViewFeedback.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/ViewFeedback;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "MyGlympseView"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/android/glympse/ViewFeedback;


# direct methods
.method constructor <init>(Lcom/glympse/android/glympse/ViewFeedback;)V
    .locals 0
    .parameter

    .prologue
    .line 51
    iput-object p1, p0, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewFeedback;

    invoke-direct {p0}, Lcom/glympse/android/glympse/Glympse$GlympseView;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;)Lcom/glympse/android/glympse/ViewFeedback;
    .locals 1
    .parameter

    .prologue
    .line 51
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewFeedback;

    return-object v0
.end method


# virtual methods
.method public CreateView()V
    .locals 6

    .prologue
    .line 57
    iget-object v1, p0, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewFeedback;

    invoke-virtual {v1}, Lcom/glympse/android/glympse/ViewFeedback;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const v2, 0x7f030012

    iget-object v3, p0, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewFeedback;

    const/4 v4, 0x1

    invoke-virtual {v1, v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    .line 60
    .local v0, oView:Landroid/view/View;
    iget-object v1, p0, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewFeedback;

    invoke-static {v1}, Lcom/glympse/android/glympse/ViewFeedback;->access$0(Lcom/glympse/android/glympse/ViewFeedback;)V

    .line 63
    iget-object v1, p0, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewFeedback;

    const v2, 0x7f0c0057

    invoke-virtual {v1, v2}, Lcom/glympse/android/glympse/ViewFeedback;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/EditText;

    iget-object v2, p0, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewFeedback;

    new-instance v3, Lcom/glympse/android/glympse/ViewFeedback$TextWatcherFeedback;

    iget-object v4, p0, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewFeedback;

    const/4 v5, 0x0

    invoke-direct {v3, v4, v5}, Lcom/glympse/android/glympse/ViewFeedback$TextWatcherFeedback;-><init>(Lcom/glympse/android/glympse/ViewFeedback;Lcom/glympse/android/glympse/ViewFeedback$TextWatcherFeedback;)V

    invoke-static {v2, v3}, Lcom/glympse/android/glympse/ViewFeedback;->access$1(Lcom/glympse/android/glympse/ViewFeedback;Lcom/glympse/android/glympse/ViewFeedback$TextWatcherFeedback;)V

    invoke-virtual {v1, v3}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 66
    const v1, 0x7f0c0058

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    new-instance v2, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView$1;

    invoke-direct {v2, p0}, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView$1;-><init>(Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 74
    return-void
.end method

.method public DestroyView()V
    .locals 3

    .prologue
    .line 79
    iget-object v1, p0, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewFeedback;

    invoke-static {v1}, Lcom/glympse/android/glympse/ViewFeedback;->access$3(Lcom/glympse/android/glympse/ViewFeedback;)V

    .line 83
    :try_start_0
    iget-object v1, p0, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewFeedback;

    invoke-static {v1}, Lcom/glympse/android/glympse/ViewFeedback;->access$4(Lcom/glympse/android/glympse/ViewFeedback;)Lcom/glympse/android/glympse/ViewFeedback$TextWatcherFeedback;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 85
    iget-object v1, p0, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewFeedback;

    const v2, 0x7f0c0057

    invoke-virtual {v1, v2}, Lcom/glympse/android/glympse/ViewFeedback;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/EditText;

    iget-object v2, p0, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewFeedback;

    invoke-static {v2}, Lcom/glympse/android/glympse/ViewFeedback;->access$4(Lcom/glympse/android/glympse/ViewFeedback;)Lcom/glympse/android/glympse/ViewFeedback$TextWatcherFeedback;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/EditText;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    .line 86
    iget-object v1, p0, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewFeedback;

    const/4 v2, 0x0

    invoke-static {v1, v2}, Lcom/glympse/android/glympse/ViewFeedback;->access$1(Lcom/glympse/android/glympse/ViewFeedback;Lcom/glympse/android/glympse/ViewFeedback$TextWatcherFeedback;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 94
    :cond_0
    :goto_0
    iget-object v1, p0, Lcom/glympse/android/glympse/ViewFeedback$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewFeedback;

    invoke-virtual {v1}, Lcom/glympse/android/glympse/ViewFeedback;->removeAllViews()V

    .line 95
    return-void

    .line 89
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 91
    .local v0, e:Ljava/lang/Exception;
    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/Throwable;)V

    goto :goto_0
.end method
